package lab02.test05;

import java.util.Scanner;
public class Test_Cube {
    public static void main(String[] args) {

        //键盘输入长方体的长宽高
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入长方体的长：");
        double grow=sc.nextDouble();
        System.out.println("请输入长方体的宽：");
        double wide=sc.nextDouble();
        System.out.println("请输入长方体的高：");
        double high=sc.nextDouble();

        //实例化Cube类
        Cube sd=new Cube();
        System.out.println("体积为："+sd.volume(grow,wide,high));
    }
}
